package org.example;

import org.example.dao.WordGraph;
import org.example.utils.TextUtils;
public class Main {
    private static final TextUtils textUtils = new TextUtils();
    public static void main(String[] args) {
        // 测试构造函数和展示有向图功能
        String text = textUtils.processTextFile("src/main/java/org/example/input_txt/test.txt");
        WordGraph wordGraph = new WordGraph(text);
        //wordGraph.randomWalk();
        //wordGraph.showDirectedGraph("src/main/java/org/example/test.png");
        //wordGraph.calcShortestPath("seek","out","one_to_one");
        //wordGraph.queryBridgeWords("a","b");
        //wordGraph.generateNewText();
        wordGraph.randomWalk();
    }
}